{layout name="passport:layout" /}
<div class="titlebar">
    <svg class="icon fn-f18" aria-hidden="true"><use xlink:href="#icon-yingyongyuanma"></use></svg> 应用信息
</div>
<div class="tipbox tipbox-error mb5">
    <span class="fn-fb">应用描述:</span>
    <br />尊敬的【{$member_miniapp.appname}】合作伙伴您好,今天是{:date('Y-m-d')}日,欢迎使用【{$web.name}】SaaS平台的《{$member_miniapp.miniapp.title}》应用。<br />
    <p class="gray">{$member_miniapp.miniapp.describe}</p>
</div>  
<div class="tabs">
    <ul class="tab_menu mb5">
        <a href="{:url('passport.setting/index')}"><li class="current">关于应用</li></a>
        <a href="{:url('passport.setting/edit')}"><li>应用配置</li></a>
        {if $member_miniapp.miniapp.is_wechat_pay}<a href="{:url('passport.setting/wepay')}"><li>微信支付</li></a>{/if}
        {if $member_miniapp.miniapp.is_alipay_pay}<a href="{:url('passport.setting/alipay')}"><li>支付宝</li></a>{/if}
        <a href="{:url('passport.setting/tplmsg')}"><li>模板消息</li></a>
    </ul>
</div>
<table class="pure-table mb10 w100-100">
    <tbody>
        <tr>
            <td class="w330" rowspan="5" colspan="1"><img src="{$view}" class="w300"></td>
            <td>
                <h4>{$member_miniapp.miniapp.title}
                    <span class="fn-tar">{if $miniapp}<span class="badge bg-blue">已授权 {$miniapp} 个应用</span>{else}<span class="badge">未授权</span>{/if}</span></h4>
            </td>
        </tr>
        <tr><td colspan="1" rowspan="1">应用类型：
                {switch $member_miniapp.miniapp.types}
                {case mp}<span class="badge bg-blue">公众号</span>{/case}
                {case program}<span class="badge bg-green">小程序</span>{/case}
                {case app}<span class="badge bg-yellow">APP</span>{/case}
                {case mp_program}<span class="badge bg-red">小程序/公众号</span>{/case}
                {case mp_program_app}<span class="badge bg-red">小程序/公众号/APP</span>{/case}
                {default /}<span class="badge">应用异常</span>
                {/switch}  
        </td></tr>
        <tr><td colspan="1" rowspan="1">服务方式：{if $member_miniapp.miniapp.is_openapp}<span class="badge">独立应用</span>{else}<span class="badge">开放平台</span>{/if}</td></tr>
        <tr><td colspan="1" rowspan="1">最新版本：v{$member_miniapp.miniapp.version}</td></tr>
        <tr><td colspan="1" rowspan="1">更新时间：{$member_miniapp.miniapp.update_time|date='Y-m-d H:i:s'}</td></tr>
    </tbody>
</table>  
<table class="pure-table">
    <thead>
        <tr>
            <th class="w140 fn-tac"></th> 
            <th class="w100">应用名称</th> 
            <th class="w80 fn-tac">应用ID</th>
            <th class="w120 fn-tac">公众号APPID</th>
            <th class="w120 fn-tac">小程序APPID</th>
            <th>客户端ID</th>
            <th class="w100 fn-tac">当前版本</th> 
            <th class="w120">更新时间</th> 
        </tr>
    </thead>
    <tbody>
        <tr>
            <td class="fn-tac fn-f16 fn-fb"><img src="{$logo}" class="w110"><p></p></td>
            <td>{$member_miniapp.appname}</td>
            <td class="fn-tac">{$member_miniapp.id} </td>
            <td>{$member_miniapp.mp_appid}</td>
            <td>{$member_miniapp.miniapp_appid}</td>
            <td>{$member_miniapp.service_id}</td>
            <td class="fn-tac">
                {if $member_miniapp->miniapp->is_openapp}
                    {if $member_miniapp->miniapp->template_id > $member_miniapp->order->update_var}
                        <span class="badge bg-red">有新版</span>
                    {else}
                        v{$member_miniapp.miniapp.version}
                    {/if}
                {else}
                    v{$member_miniapp.miniapp.version}
                {/if}
            </td>
            <td>{$member_miniapp.miniapp.update_time|date='Y-m-d'}</td>
        </tr>
    </tbody>
</table>